/* 基础样式 */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

/* 容器 */
.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
}

/* 头部 */
header {
    background: #35424a;
    color: #ffffff;
    padding: 20px 0;
    text-align: center;
}

/* 导航 */
nav ul {
    padding: 0;
    list-style: none;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
}

/* 主体 */
main {
    background: #ffffff;
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 表格 */
table {
    width: 100%;
    border-collapse: collapse;
}

table th, table td {
    padding: 12px;
    border: 1px solid #dddddd;
    text-align: center;
}

table th {
    background-color: #35424a;
    color: #ffffff;
}

/* 按钮 */
input[type="submit"] {
    background-color: #35424a;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
}

input[type="submit"]:hover {
    background-color: #46a049;
}
input[type="button"] {
    background-color: #35424a;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
}

input[type="button"]:hover {
    background-color: #46a049;
}


/* 表单 */
form {
    margin: 20px 0;
}

form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

form input[type="text"], form input[type="password"], form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #dddddd;
    border-radius: 5px;
}

form textarea {
    height: 100px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    nav ul li {
        display: block;
        margin: 10px 0;
    }

    .container {
        width: 95%;
    }
}

a {
    display: inline-block;
    padding: 15px 30px;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}
a:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
a.button-like {
               display: inline-block;
               padding: 10px 20px;
               background-color: #007BFF;
               color: white;
               border-radius: 5px;
               text-decoration: none;
           }
a.button-like:hover {
               background-color: #0056b3;
           }

a.box-link {
            display: inline-block;
            padding: 15px 30px;
            border: 1px solid #ccc;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            text-decoration: none;
            color: #333;
            transition: all 0.3s ease;
        }
a.box-link:hover {
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
        }

/* 响应式设计 - 小屏幕（例如手机） */
@media (max-width: 768px) {
    #orderTable {
        font-size: 14px;
    }

    #orderTable th,
    #orderTable td {
        padding: 8px;
    }

    /* 表头堆叠显示 */
    #orderTable thead tr th {
        display: block;
    }

    #orderTable tbody tr td {
        display: block;
        width: 100%;
        border-top: none;
    }

    /* 为每个数据单元格添加上边框以区分行 */
    #orderTable tbody tr td:before {
        content: attr(data-label);
        float: left;
        font-weight: bold;
        margin-right: 5px;
        border-top: 1px solid #dddddd;
        padding-top: 8px;
    }
}
/* 分页容器样式 */
.pagination {
    margin-top: 20px;
    text-align: center;
}

/* 分页链接样式 */
.pagination a {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.pagination a:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background-color: #f5f5f5;
}

/* 当前页样式 */
.pagination.current-page {
    padding: 8px 16px;
    margin: 0 5px;
    background-color: #4CAF50;
    color: white;
    border-radius: 5px;
}